<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<script src="${ctxStatic}/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic}/vendor/jquery-select2/3.4/select2.js" type="text/javascript"></script>
<script src="${ctxStatic}/vendor/parsleyjs/dist/parsley.js" type="text/javascript"></script>
<meta name="decorator" content="default"/>


<style>
    .col-margin {margin: 10px 0px;}
    .table-title {
        font-size: 15px;
        font-weight: bold;
        padding-top:5px;
        text-align: center;
        width: 100%;
    }
    .col-lg-10 {width: 98%;margin-left: 25px;padding-top:7px;text-align: left}
    .col-sm-11 {
        width: 100%;
    }
    .panel-body {
        padding: 15px 30px 15px 0;
    }
</style>

<div class="panel-body" style="padding-top:10px;background-color: white;">
    <form:form id="inputForm" data-parsley-validate="" modelAttribute="pregnantVisit" method="post" class="form-horizontal" >
        <input type="hidden" name="id" value="${pregnantVisit.id}" >
        <input type="hidden" name="clinicId" value="${clinicMaster.id}" >
        <input type="hidden" name="patientId" value="${clinicMaster.patientId}" >
        <input type="hidden" name="cardNo" value="${clinicMaster.patMasterIndex.cardNo}" >
        <input type="hidden" id="idNo" name="idNo" value="${clinicMaster.patMasterIndex.idNo}" >
        <input type="hidden" name="visitDept" value="${clinicMaster.deptId}" >
        <input type="hidden" name="orgId" value="${clinicMaster.orgId}" >
        <input type="hidden" name="type" value="2" >
        <p style="font-weight: bold;font-size: 20px;text-align: center">${fns:getDictLabel(pregnantVisit.gestationalTitle,"PREGNANT_VISIT_RECORDS" ,"" )}</p>

        <div class="col-lg-10">
            <table border="1px" width="100%">
                <tr>
                    <td colspan="4">
                        <div class="col-sm-5 col-margin">
                            <label class="col-sm-3 control-label">孕&#8195;&#8195;周：</label>
                            <div class="col-sm-4">
                                <input type="number" min="0" max="99" name="gestationalWeeks" id="gestationalWeeks" value="${pregnantVisit.gestationalWeeks}" class="form-control">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="10%">
                        <label class="table-title">骨盆内测量</label>
                    </td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">对角径：</label>
                            <div class="col-sm-5">
                                <input type="text"  name="inPelvimetryCd" id="inPelvimetryCd"
                                       value="${pregnantVisit.inPelvimetryCd}" class="form-control">
                            </div>
                            <label class="col-sm-1 control-label">cm</label>
                        </div>
                    </td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">坐骨棘间径：</label>
                            <div class="col-sm-5">
                                <input type="text"  name="inPelvimetryBd" id="inPelvimetryBd"
                                       value="${pregnantVisit.inPelvimetryBd}" class="form-control">
                            </div>
                            <label class="col-sm-1 control-label">cm</label>
                        </div>
                    </td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">坐骨切迹宽度：</label>
                            <div class="col-sm-5">
                                <input type="text"  name="inPelvimetrySnwith" id="inPelvimetrySnwith"
                                       value="${pregnantVisit.inPelvimetrySnwith}" class="form-control">
                            </div>
                            <label class="col-sm-1 control-label">cm</label>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="10%"></td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">37周专家鉴定：</label>
                            <div class="col-sm-6">
                                <sys:select isNull="1" checkValue="${pregnantVisit.thirtySeventhDoctor}"
                                            lists="${fns:getDictList('MODE_OF_DELIVERY')}"
                                            className="form-control" name="thirtySeventhDoctor"></sys:select>                    </div>
                        </div>
                    </td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">鉴定时间：</label>
                            <div class="col-sm-6">
                                <input type="text" name="expertTestimonyTime"  id="expertTestimonyTime"
                                       value="<fmt:formatDate value="${pregnantVisit.expertTestimonyTime}" pattern="yyyy-MM-dd" type="date" dateStyle="long" />" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" class="form-control Wdate">
                            </div>
                        </div>
                    </td>
                    <td width="30%">
                        <div class="col-sm-11 col-margin">
                            <label class="col-sm-5 control-label">检查医师：</label>
                            <div class="col-sm-6">
                                <input type="text"  name="doctorName" readonly="true"
                                       id="doctorName" value="${pregnantVisit.doctorName}" class="form-control">
                            </div>
                        </div>
                    </td>
                </tr>
            </table>

        </div>

    </form:form>
</div>